package basic

import (
	"chat/app/service/basic"
	"net/http"
)

// Login 用户登陆
func (c *App) Login() {
	// valid

	// login auth
	data := basic.LoginAuthService(c.Ctx, c.Context)
	c.JSON(http.StatusOK, data)
}

// Logout 退出登陆
func (c *App) Logout() {
	data := basic.LogoutService(c.Ctx, c.Context)
	c.JSON(http.StatusOK, data)
}
